﻿@model Citi.Scheduler.WebUi.Models.PeriodSummaryModel

<fieldset>
    <legend>Summary @Model.Start.ToString("dd/MM/yyyy") to @Model.End.ToString("dd/MM/yyyy")</legend>
    <div class="display-label">@Html.LabelFor(model => model.AverageExecution):
        @Math.Round(Model.AverageExecution, 2) minutes
    </div>
    <div class="display-label">@Html.LabelFor(model => model.MaximumExecution):
        @Math.Round(Model.MaximumExecution, 2) minutes
    </div>
    <div class="display-label">@Html.LabelFor(model => model.MinimumExecution):
        @Math.Round(Model.MinimumExecution, 2) minutes
    </div>
    <div class="display-label">@Html.LabelFor(model => model.ErrorsCount):
        @Html.DisplayFor(model => model.ErrorsCount) errors
    </div>
    <div class="display-label">@Html.LabelFor(model => model.ExecutionTime):
        @Html.DisplayFor(model => model.ExecutionTime) minutes
    </div>
    <div class="display-label">@Html.LabelFor(model => model.PercentageVariation):
        @Math.Round((double)Model.PercentageVariation, 2)%
    </div>
    <div class="display-label">@Html.LabelFor(model => model.GreaterVariation):
        @Math.Round(Model.GreaterVariation, 2)% (@Model.GreaterVariationStart.ToString("dd/MM/yyyy")
        -
        @Model.GreaterVariationEnd.ToString("dd/MM/yyyy"))
    </div>
    <div class="display-label">@Html.LabelFor(model => model.Growth):
        @Math.Round(Model.Growth, 2)%
    </div>
    <div class="display-label">@Html.LabelFor(model => model.ExecutionsCount):
        @Html.DisplayFor(model => model.ExecutionsCount) executions
    </div>
</fieldset>

